var singlemap;
var LocationInfoMediator = Objs("view.LocationInfoMediator",
	Mediator,
{

	initialize: function( name, viewComponent )
	{ 
		LocationInfoMediator.$super.initialize.call( this, name, viewComponent );
    this.VProxy = this.facade.retrieveProxy( ProxyNames.VEHICLE_PROXY );
		this.assetProxy = this.facade.retrieveProxy( ProxyNames.INITIAL_PROXY );
		this.registerListeners();
		var mapdivMap = document.getElementById("map-2-content");
	
		var mcenter = new google.maps.LatLng(37.423021 , -122.083739);
		var mapOptions = {
				zoom: 6,
				center:mcenter,
				mapTypeId: google.maps.MapTypeId.ROADMAP
			}
		
		singlemap=new google.maps.Map(document.getElementById("map-2-content"), mapOptions);
		
	},
	registerListeners: function()
	{   var mapPage = this.get();
		
	},
	get: function()
	{
		return this.viewComponent;
	},
	unregisterListeners: function()
	{
	},
	setvalue:function()
	{
		document.getElementById('vl_v_address').value = vehicleSingle.v_street_address;
		document.getElementById('vl_v_city').value = vehicleSingle.v_city;
		document.getElementById('vl_v_state').value = vehicleSingle.v_state;
		document.getElementById('vl_v_zip').value = vehicleSingle.v_zip;
		document.getElementById('vl_i_want_to').value = vehicleSingle.i_want_to;
		document.getElementById('vl_delivery_option').value = vehicleSingle.delivery_option;
		google.maps.event.trigger(singlemap, 'resize');
		
		
		this.sendNotification( NotificationNames.SHOW_INFO_MAP_1,'df');
		
	},
	listNotificationInterests: function()
	{
		return [
				NotificationNames.SETVLOCVALUE
		];
	},
    handleNotification: function( note )
	{ 
		
		switch (note.getName() )
		{ 
			case NotificationNames.SETVLOCVALUE:
				this.setvalue();
				break;
		}
	}	
});

